package com.ruoyi.cms.entity.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 模型收藏对象 cms_model_favorite
 */
@Data
@TableName("cms_model_favorite")
public class ModelFavorite implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 收藏id
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /**
     * 模型id
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long modelId;

    /**
     * 用户id
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long userId;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;


}
